<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册</title>
    <link rel="stylesheet" href="/static/css/login.css">
    </link>
</head>

<body>
    <div class="cont-parent">
    <div class="cont"  style="display: flex;justify-content: center;align-content: center;opacity: 0.8">
        <div class="form sign-in">
            <h2>注册</h2>
            <form action="/auth/register" method="post">
                    <label>
                        <span>用户名</span>
                        <input type="text" name="username" placeholder="请输入用户名" required/>
                    </label>
                    <label>
                        <span>密码</span>
                        <input type="password" name="password" placeholder="请输入密码" required/>
                    </label>
                    <button type="submit" class="submit">注册</button>
                  <button  type="button" class="submit" onclick="denglu()" >登录==></button>
            </form>

        </div>

    </div>
    </div>
</body>
<script>

    function denglu(){
         window.location.href = '/';
    }


</script>
</html>
